﻿using System;

namespace HslCommunication.MQTT
{
	/// <summary>
	/// 定义了Mqtt的相关的控制报文的信息
	/// </summary>
	// Token: 0x020000C1 RID: 193
	public class MqttControlMessage
	{
		/// <summary>
		/// 操作失败的信息返回
		/// </summary>
		// Token: 0x040003D0 RID: 976
		public const byte FAILED = 0;

		/// <summary>
		/// 连接标识
		/// </summary>
		// Token: 0x040003D1 RID: 977
		public const byte CONNECT = 1;

		/// <summary>
		/// 连接返回的标识
		/// </summary>
		// Token: 0x040003D2 RID: 978
		public const byte CONNACK = 2;

		/// <summary>
		/// 发布消息
		/// </summary>
		// Token: 0x040003D3 RID: 979
		public const byte PUBLISH = 3;

		/// <summary>
		/// QoS 1消息发布收到确认
		/// </summary>
		// Token: 0x040003D4 RID: 980
		public const byte PUBACK = 4;

		/// <summary>
		/// 发布收到（保证交付第一步）
		/// </summary>
		// Token: 0x040003D5 RID: 981
		public const byte PUBREC = 5;

		/// <summary>
		/// 发布释放（保证交付第二步）
		/// </summary>
		// Token: 0x040003D6 RID: 982
		public const byte PUBREL = 6;

		/// <summary>
		/// QoS 2消息发布完成（保证交互第三步）
		/// </summary>
		// Token: 0x040003D7 RID: 983
		public const byte PUBCOMP = 7;

		/// <summary>
		/// 客户端订阅请求
		/// </summary>
		// Token: 0x040003D8 RID: 984
		public const byte SUBSCRIBE = 8;

		/// <summary>
		/// 订阅请求报文确认
		/// </summary>
		// Token: 0x040003D9 RID: 985
		public const byte SUBACK = 9;

		/// <summary>
		/// 客户端取消订阅请求
		/// </summary>
		// Token: 0x040003DA RID: 986
		public const byte UNSUBSCRIBE = 10;

		/// <summary>
		/// 取消订阅报文确认
		/// </summary>
		// Token: 0x040003DB RID: 987
		public const byte UNSUBACK = 11;

		/// <summary>
		/// 心跳请求
		/// </summary>
		// Token: 0x040003DC RID: 988
		public const byte PINGREQ = 12;

		/// <summary>
		/// 心跳响应
		/// </summary>
		// Token: 0x040003DD RID: 989
		public const byte PINGRESP = 13;

		/// <summary>
		/// 客户端断开连接
		/// </summary>
		// Token: 0x040003DE RID: 990
		public const byte DISCONNECT = 14;

		/// <summary>
		/// 报告进度
		/// </summary>
		// Token: 0x040003DF RID: 991
		public const byte REPORTPROGRESS = 15;

		/// <summary>
		/// 文件传输中没有意义的标记
		/// </summary>
		// Token: 0x040003E0 RID: 992
		public const byte FileNoSense = 100;

		/// <summary>
		/// 下载文件的命令，一次只能下载一个文件
		/// </summary>
		// Token: 0x040003E1 RID: 993
		public const byte FileDownload = 101;

		/// <summary>
		/// 上传文件的命令，一次只能上传一个文件
		/// </summary>
		// Token: 0x040003E2 RID: 994
		public const byte FileUpload = 102;

		/// <summary>
		/// 删除文件的命令，一次可以删除多个文件
		/// </summary>
		// Token: 0x040003E3 RID: 995
		public const byte FileDelete = 103;

		/// <summary>
		/// 删除目录的命令，目录下面的所有的文件都会被删除
		/// </summary>
		// Token: 0x040003E4 RID: 996
		public const byte FileFolderDelete = 104;

		/// <summary>
		/// 遍历指定目录下所有的文件信息
		/// </summary>
		// Token: 0x040003E5 RID: 997
		public const byte FileFolderFiles = 105;

		/// <summary>
		/// 遍历指定目录下所有的子目录信息
		/// </summary>
		// Token: 0x040003E6 RID: 998
		public const byte FileFolderPaths = 106;

		/// <summary>
		/// 文件是否存在
		/// </summary>
		// Token: 0x040003E7 RID: 999
		public const byte FileExists = 107;
	}
}
